package com.example.demo;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.time.LocalTime;

@Controller
@RequestMapping()
public class WelcomeController {

    @RequestMapping("/")
    public String toJps(Model model) {
        LocalTime time = LocalTime.now();
        model.addAttribute("welcome", "welcome, now:" + time.toString());
        return "welcome";
    }
}
